package crmdna.payment.ipn;

public class IpnInfo {

    private String paymentStatus; //1  (Completed or Refunded)
    private String paymentAmount; //1 (mc_gross: + for payments, - for refunds)
    private String paymentCurrency; //1
    private String txnId; //1
    private String receiverEmail;
    private String response;
    private String requestParams;
    private String error;
    private String invoice; //1
    private Long logTime;

    public Long getLogTime() {
        return logTime;
    }

    public void setLogTime(Long logTime) {
        this.logTime = logTime;
    }

    public String getInvoice() {
        return invoice;
    }

    public void setInvoice(String invoice) {
        this.invoice = invoice;
    }

    public String getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(String paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public String getPaymentCurrency() {
        return paymentCurrency;
    }

    public void setPaymentCurrency(String paymentCurrency) {
        this.paymentCurrency = paymentCurrency;
    }

    public String getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(String paymentStatus) {
        this.paymentStatus = paymentStatus;
    }

    public String getReceiverEmail() {
        return receiverEmail;
    }

    public void setReceiverEmail(String receiverEmail) {
        this.receiverEmail = receiverEmail;
    }

    public String getRequestParams() {
        return requestParams;
    }

    public void setRequestParams(String requestParams) {
        this.requestParams = requestParams;
    }

    public String getResponse() {
        return response;
    }

    public void setResponse(String response) {
        this.response = response;
    }

    public String getTxnId() {
        return txnId;
    }

    public void setTxnId(String txnId) {
        this.txnId = txnId;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    @Override
    public String toString() {
        return "txn_id = " + this.getTxnId()
                + ", response = " + this.getResponse()
                + ", payment_status = " + this.getPaymentStatus()
                + ", payment_amount = " + this.getPaymentAmount()
                + ", payment_currency = " + this.getPaymentCurrency()
                + ", receiver_email = " + this.getReceiverEmail()
                + ", request_params = " + this.getRequestParams()
                + ", log_time = " + this.getLogTime()
                + ", error = " + this.getError();
    }

}